﻿using System;
using Oxage.CNC.Models;

namespace Oxage.Simulator
{
	[InlineBinding(typeof(ICloseInline))]
	public class CloseStepMaker : IStepMaker
	{
		#region IStepMaker Members
		public void Run(IStepDriver driver, object data)
		{
			if (driver == null)
			{
				throw new ArgumentNullException("driver");
			}

			var inline = data as ICloseInline;
			if (inline == null)
			{
				throw new ArgumentException("Expected ICloseInline");
			}

			//Line(driver, driver.World.X, driver.World.Y, (int)inline.EndPoint.X, (int)inline.EndPoint.Y);
		}
		#endregion
	}
}
